<h1>LISTADO DE PREDIOS </h1>

<div class="paging">
    <?php
    echo $this->Paginator->options(array('update' => '#content', 'evalScripts' => false));
    echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
    echo $this->Paginator->numbers(array('separator' => ''));
    echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
</div>
<table>
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('Property.id', 'Id'); ?></th>
            <th><?php echo $this->Paginator->sort('Property.nombre', 'Nombre'); ?></th>
            <th><?php echo $this->Paginator->sort('Property.matricula', 'Mátricula'); ?></th>
            <th><?php echo $this->Paginator->sort('Property.cedulaCatastral', 'Cédula catastral'); ?></th>
            <th><?php echo $this->Paginator->sort('Property.area', 'Área'); ?></th>
            <th><?php echo $this->Paginator->sort('Property.area_permuta', 'Área permuta'); ?></th>
            <th colspan="3"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($Properties as $Property): ?>
            <tr>
                <td><?php echo $Property['Property']['id']; ?></td>
                <td><?php echo $Property['Property']['nombre']; ?></td>
                <td><?php echo $Property['Property']['matricula']; ?></td>
                <td><?php echo $Property['Property']['cedulaCatastral']; ?></td>
                <td><?php echo $Property['Property']['area']; ?></td>
                <td><?php echo $Property['Property']['area_permuta']; ?></td>
                <td><?php echo $this->Ajax->link('Propietarios', array('controller' => 'Owners', 'action' => 'evaluation_index', $Property["Property"]["id"]), array('update' => 'content', 'indicator' => 'loading')); ?></td>
                <td><?php echo $this->Ajax->link('Evaluación', array('controller' => 'PropertyEvaluations', 'action' => 'index', $Property["Property"]["id"]), array('update' => 'content', 'indicator' => 'loading')); ?></td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Js->writeBuffer(); ?>
